package com.edgarli.detail.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.edgarli.common.annotation.Excel;
import com.edgarli.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 家庭收入对象 t_income
 * 
 * @author EdgarLi
 * @date 2022-01-12
 */
@Data
@Accessors(chain = true)
public class TIncome extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收入id */
    @TableId(value = "income_id",type = IdType.AUTO)
    private String incomeId;

    /** 用户ID */
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal money;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 交易方式 */
    @Excel(name = "交易方式")
    private Long payby;

    /** 收入类型 */
    @Excel(name = "收入类型")
    private Long type;



}
